A mathematician trying to cross a street happened to witness a bank robbery. When the police questioned him, he stated that the number plate of the van in which the thieves escaped had its last four digits as follows: The first digit is 5. The last digit is the square of the second digit. The third digit is twice the second digit. Also, he noticed the sum of digits to be “9”. What is the quadratic equation that the police need to frame to find the 2nd digit, given that b is the second digit?