Niall owes $187 to his cousin. However, he doesn't have any money right now. He hopes to earn some money by painting a house. He gets paid $34 for every 2 hours he paints. Which equation of a line models y, the amount of money he will have after paying back his cousin, in terms of x, the number of hours he spends painting?
A.
y = 34x − 187
B.
y = 17x + 187
C.
y = 34x + 187
D.
y = 17x − 187