Multiple rates word problem