The £27 the friends paid is £25 to the hotel plus the porter’s £2, so adding his £2 on again counts it twice. The sum that makes £30 is £27 paid plus £3 handed back.