When I was four grade, Mr. Li taught me math或 When I was in fourth grade, Mr Li taught me mathematics
When I was in Grade 4,Mr Li taught me math.
When I in Grade 4,Mr. Li teached my math.
注意用一般过去时就行了。Mr Li taught me Maths when I was in Grade 4.