def find_scalar_sol(n, scalar, solution_idx):
	"""
	Find the list scalar products for solution function from init_scalar. 

	Parameters:
	n 	         -- integer
	scalar 		 -- list of Decimal
	solution_idx -- list of Decimal

	Return:
	solution -- list of Decimal
	"""
	solution = [scalar[i][solution_idx[i]] for i in range(n)]

	return solution