Final answer:
Shreya rented the bike for 5 hours. The equation based on the costs provided led to a calculation where the total cost minus the flat fee, divided by the hourly rate, gave the number of hours rented.
Step-by-step explanation:
To determine how many hours Shreya rented the bike for, we need to create an equation based on the information given: a flat fee of $10, plus $6 for each hour the bike is rented. We know that Shreya paid a total of $40. So, the equation looks like this:
Total Cost = Flat Fee + (Hourly Rate × Number of Hours Rented)
Now let's substitute the known values into the equation:
$40 = $10 + ($6 × Number of Hours)
To find the number of hours, we subtract the flat fee from the total cost and then divide by the hourly rate:
$40 - $10 = $6 × Number of Hours
$30 = $6 × Number of Hours
Number of Hours = $30 / $6
Number of Hours = 5
Therefore, Shreya rented the bike for 5 hours, which corresponds to option A).