@Adriana *********
then your friend was just lucky, the Immigration officers had a fine day, and thought "let's give both of these guys an extension, so they don't need to come back" . . . . .and by the way: There is NOTHING such as a 30-days visa-on-arrival. It is called visa-exempt entry and you receive a "stay permit" of 30 days