A professional painter charges based on the type of room. For small rooms, the painter completes 0.4 rooms per hour. For large rooms, the painter completes 0.15 rooms per hour. If the painter works on small rooms for hours and large rooms for hours, completing a total of 10 rooms, which equation represents this scenario?