Pesto price comparison?

Guys, I literally cannot tell, is tomato sauce cheaper than pesto? Or are they the same price? I tried to count, but it is very hard for me, since they are very cheap.

Is it safe to use it instead of tomato sauce? Especially for zazoom... Please help me solve this conundrum.