How to change incorrect calculation in Microsoft Project?

I have 3 resources assigned to a task. It takes 30 hours total to complete the task.
Say one resource works for $10/hr, another $20/hr, and third $15/hr.
The cost should be $450 since everyone works 10 hours each on this task.
But MS Project is calculating a totally different cost.
