An electrician charges $50 to come to your house. He also charges $25 for each hour he spends at your house. The electrician charges you a total of $125. How many hours did he spend at your house? Please also write the equation