On average, the mouse will find the cheese after entering 3 rooms. The last of these will of course be room 1. So on average he'll visit two others before room 1. The average time spent there will be 4.5 minutes each. Then 4.5 * 2 + 3 = 12 minutes as his average (expected) time to get the cheese.