27 students in a class had one vote for a class captain. They voted for Ben, Erin and Tim. Ben got 3 more votes than Erin. Ben got 6 more votes than Tim. How many votes did Ben get ?