When my homework gets hard for me, i usually take a 5-10 minute break listening to music, and then drink some tea to help me focus. If i still Can't focus i go into the other room and try my hardest. If that doesn't work i use a extension on my laptop that blocks most websites so i know my computer can't go on anything other. But when i can't simply understand the homework itself? I try my hardest and then if i still can't focus i ask someone for help.