I'm a starting programmer (?) where we were assigned to do basics like real basics first, In which I'm glad they're doing that but the teacher is a bit of a nuthead LOL. She didn't explain how the codes work and stuff so I'm here probably for the whole school semester til' I can solve anything alone (?)

So we were working with a different currency, PHP for this Fare Calculator and I have no idea how the codes work but the teacher gave me an idea but I don't understand how things work and stuff.

The problem we were given with was this:
Input KM: 4

Hi Your Total Fare is 9.00php
* 3KM below is 8.00php
* Add 1.00php per additional KM

But she said we could only use two operators which is: subtraction and multiplication, I think it's impossible but okay challenge accepted, I'm not great great at math or coding but if anyone of you could teach me on this that'll help a lot like how the codes work and what this and that mean I tried LOL and here's my code that doesn't work at ALL and I don't know why LOL

=(A2<3=8.00)if(A2>3, A2+1)