Hannah's total earnings are 18 hours * $30/hour = $<<18*30=540>>540 a week.
Her pay was docked because she was late 3 times, so 3 times * $5 per time = $<<3*5=15>>15 were docked.
She gets paid $540 - $15 = $<<540-15=525>>525 at the end of the week.
#### 525