How can happiness and pain be parallel?

can happiness and pain be parallel? if yes then how?