Slope=3, Y-intercept=(0,-1)
52
- is prime? No
- is multiple of 3? No
continue
53
- is prime? Yes
continue
54
- is prime? No
- is multiple of 3? Yes
- is multiple of 4? No
continue
55
- is prime? No
- is multiple of 3? No
continue
56
- is prime? No
- is multiple of 3? No
continue
57
- is prime? No
- is multiple of 3? Yes
- is multiple of 4? No
continue
58
- is prime? No
- is multiple of 3? No
continue
59
- is prime? Yes
continue
60
- is prime? No
- is multiple of 3? Yes
- is multiple of 4? Yes
Therefore 60 is the answer, as it fits all the conditions
Simple trial and error.
The problem is asking how much each person will need to pay. Simplifying the problem into an equation with variables (an algorithm) will greatly help you solve it:
S = Sales Tax = $ 7.18 per any purchase
A = Admission Ticket = $ 22.50 entry price for one person (no tax applied)
F = Food = $ 35.50 purchases for two people
We know the cost for one person was: (22.50) + [(35.50/2) + 7.18] =
$ 47.43 per person. Now we can check each method and see which one is the correct algorithm:
Method A)
[2A + (F + 2S)] / 2 = [ (2)(22.50) + [35.50 + (2)(7.18)] ]/ 2 = $47.43
Method A is the correct answer
Method B)
[(2A + (1/2)F + 2S) /2 = [(2)(22.50) + 35.50(1/2) + (2)7.18] / 2 = $38.55
Wrong answer. This method is incorrect because the tax for both tickets bought are not being used in the equation.
Method C)
[(A + F) / 2 ]+ S = [(22.50 + 35.50) / 2 ] + 7.18 = $35.93
Wrong answer. Incorrect Method. The food cost is being reduced to the cost of one person but admission price is set for two people.
(7-3+4^3/2) / (9-5)
7-3+64/2) / 4
(7-3 + 32) / 4
(4 + 32) / 4
36/4 = 9
48 + 72
24(2 + 3)