Alexa and the Tea Plantation
05AB1E, 20 bytes
WU|vy#‚ø€¥˜Ä2ä`OX*,
Explanation
WU # store minimum cost in X
|v # for each testcase
y# # convert to list split on spaces
‚ø # zip with its own reverse
€¥ # deltas of each pair
˜Ä # deep flatten and take absolute value
2ä # split into 2 pieces
` # flatten (leaves the smaller piece on top of the stack)
O # sum
X* # multiply with minimum cost
, # print
Try it online!