Our dishwasher quit draining which led me to look a the plumbing. The previous owners obviously did this work themselves. Looking at it, it doesn't seem like it is right. I have limited plumbing knowledge, but I know enough to know that there should be a P trap somewhere in this system. Any suggestions as to how to fix this? See attached pictures.