Crash already told you a 295/35 would be the same. The 295/35 is 0.1" taller than the 255/40. It doesn't get much closer than that.
I'm going to take a moment here, because it sounds like you don't quite have a grasp on what the numbers mean in a tire size.
We'll work with the 255/40-20 size.
The first number, 255, is the section width. This is the width of the tread measured in millimeters. 255mm
The second number, 40, is the aspect ratio. This is the thickness of the sidewall measured as a percentage of the aspect ratio. 40% of 255mm.
The third number, 20, is obviously the wheel diameter.
So, when you're running a staggered size, if you want to keep the same diameter front to rear, you're always going to have a lower aspect ratio in the rear for the wider tire. That explains why the 295/40 is so much taller than the 255/40 and why the 295/35 is the same height as a 255/40.