What happens if a resource is allocated multiple times to a project with different rates?

The highest rate is used to calculate the cost and bill amounts of the resource.