Two sides of a parallelogram are 30 and 20. One diagonal has a length of \(40\). What is the length of the other diagonal?