Atv shutting off

I have a 2008 Can Am max Xt 800. The Atv runs awesome for 10 to 15 minutes then shuts off. The Atv starts rite back up and runs awesome for another 10 to 15 minutes and shuts off again. I bought this ATV from a guy that was suppose to be a friend but oh well it’s been broke sense first day I got it. I’m replacing fuel pump but These vent tubes on this Atv which direction should they go This atv shuts off to me like a boat that’s not venting.