math in html: parsing

a
x
x
x

x

x

x

y
x
x
x

x

x

x

x

x

x

x

x

x