A problem on linear functions