Pedro and John are going on a field trip with school. Together the boys have $62 to spend on the trip. If Pedro has $15 more than John, how much money does John have? Write a function rule (equation) that represents the situation.