Write a function rule to represent the situation.
The amount y of your friend's allowance if the amount she receives is $3 more than the amount x you receive.