to join a gym your friend pays a one-time fee of $75 and $45 per month for the duration of the membership.Your friend has paid a total of $345.How long has your friend been a member of the gym??

Assistance needed.

Total=onetime+numbermonths*45

solve for number months

To find out how long your friend has been a member of the gym, we can subtract the one-time fee from the total amount paid, and then divide the remaining amount by the monthly fee.

Let's break it down step by step:

1. Subtract the one-time fee ($75) from the total amount paid ($345):
Total amount paid - One-time fee = Remaining amount paid
$345 - $75 = $270

2. Divide the remaining amount paid ($270) by the monthly fee ($45):
Remaining amount paid / Monthly fee = Number of months
$270 / $45 = 6 months

Therefore, your friend has been a member of the gym for 6 months.