ovoxo wrote:How do you stay in the Uk for 10 years without a T2 visa? i see a lot of people with no english skills that go to the Uk and work in fish n chips shop only to come back with at least an ILR, which frankly boggles my mind.

What visa do they go on?
There are numerous routes migrants can use.
Up until about a year or so ago, you could be on a student visa for 10 years. This is no longer possible as there is now a cap on the amount of time you can spend on this visa.
There are other visa, like Tier 2 ICT that don't lead to ILR anymore but migrants might switch to dependent status if their spouse got a Tier 2 G. This seems to be a common trend on the forum, migrants switching between main visa holder and dependent, particularly in the visa categories that do not themselves qualify for ILR based on years.
Then of course a lot of people here as you describe, have entered the UK as 'visitors' and just never left so are basically illegal and have virtually no chance to regularise their stay. Up until July 2012, you could apply for ILR even if you had been in the UK illegally for 14 years. This has been removed now.
Of course there are others who were dependents of their parents and got ILR.
Then there are those (and many abused this route which is why it was closed), who came on Tier 1 General where no specific skill was required but they could work for anyone or be self employed.
Many people also marry EU citizens to gain the right to stay, but with Brexit, that route will rapidly close and there now appears not to be enough time to even gain PR under the EU route.
Tier 2 General leads to ILR after 5 years, as does a Spouse Settlement visa.
In your circumstances, your only option would be Student visa for your studies and then find a sponsor on Tier 2 General or look into Tier 1 Graduate Entrepreneur routes.