//自己 def main(): t = int(raw_input()) for _ in range(t): units = 0 b, w = map(int, raw_input().strip().split(' ')) x, y, z = map(int, raw_input().strip().split(' ')) if min(x, y) + z > max(x, y): if x > y: units = y * w + (y + z) * b else: units = x…