The volume of any cube is
V = s3
where:
V = volume
s = side
Your side is given. Therefore, the volume is
V = (5a + 4b)3
V = (5a + 4b)(5a + 4b)(5a + 4b)
V = (25a2 + 40ab + 16b2)(5a + 4b)
V = 5a(25a2 + 40ab + 16b2) + 4b(25a2 + 40ab + 16b2)
V = 125a3 + 200a2b + 80ab2 + 100a2b + 160ab2 + 64b3
V = 125a3 + 300a2b + 240ab2 + 64b3