If anyone asks, I worked it out in a non embarrassing amount of time