MATLAB: Intersection of three cylinders

homework

I am trying to graph the intersection of three perpendicular cylinders each centered along one of the axes. I’m using a provided program to graph over a polar region. I started by finding the intersection of two cylinders and then trying to intersect with the third but I’m not sure how to do this. Any hints are appreciated.
Related Question