A rectangle has a width of 0.3x and a length of 0.4x. Which formula is the correct one to calculate the perimeter (P) in terms of x?