Simplify (d-1)(5d-4)