At the very least I would clean it up and see what I had... The cranks look to be "out of phase" which is the way some people set their tandems up. It is possible that the timing chain slipped (after another look that may be it) I suspect that the 3 speed might be an add on? Tandem 3 speed length cables are not easy to find. (I have had to make my own before)
Aaron