I think I must have encountered something similar in my past...as soon as it I saw it I knew exactly how to get the answer.