You can AFK for up to 20 minutes if you use Super Combat Potions and Absorptions. You can AFK for around 10 minutes using Prayer and Prayer bonus gear. Or, you can AFK for 20 minutes using Guthans.