"Betty did not pay attention in the class and was slower than the other kids."
But it's not quite 'right', I'd write it:
"Betty had difficulty paying attention in class and was often left behind." or "Betty's learning difficulties were responsible for her lack of attention in class."
Charis and Hitchhiker, I am not a moderator for the site, nor am I a scholar in grammar. However, I studied English Lit., wrote many papers over four years and know a thing or two. I disagree with the suggestion. The term 'learning disabilities' does not appear in the original sentence. One should be cautious when using 'sensitive' language as one may be wrongly accused or offended (as
PC sensitivities aside, the main problem here is the tense change.
"Did not pay attention" is past. The class has ended and she got her F.
"She is slower" is simple present, and so, ongoing. She had and contiunes to have learning problems. If this is what you intended to say, then fine, there are no problems. However, "she is slower" is much the same as saying "she is stupid".