Find the distance covered to collect items at equal distances | function to calculate the distance ; Driver code
function find_distance ( n ) { return n * ( 3 * n + 7 ) ; } let n = 5 ; document . write ( " " ) ; document . write ( find_distance ( n ) ) ;