Which one is written correctly and has correct punctuation and capitalization
F "They learned by himself a better method of studying," said Jen. G Paul sat next to Jen in the library and worked quietly by ourselves. H I showed Anton how to complete the math problems by themselves. J “Did you both learn everything in the math book by yourselves?" asked Amin.