The age of consent in the UK is 16. This means that it's against the law for someone to have sex with someone under the age of 16. It wouldn't be illegal for someone who's 16 to have a relationship with someone who is 30 - unless that person is their teacher or in a position of authority.